import { externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import {
  createMainAutoImport,
  createPreloadAutoImport,
  createRenderAutoImport,
  createRenderComponents,
  createUnoCSS
} from '../plugins'

export const useMainPlugins = () => {
  return [externalizeDepsPlugin(), createMainAutoImport()]
}

export const usePreloadPlugins = () => {
  return [externalizeDepsPlugin(), createPreloadAutoImport()]
}

export const useRenderPlugins = () => {
  return [vue(), createRenderAutoImport(), createRenderComponents(), createUnoCSS()]
}
